package com.room.search.service.dto;

import javax.validation.constraints.NotNull;

/**
 * By   : ghd.bright
 * Time : 2022/3/30
 * Description:
 */
public class CityAndDistrictDTO {

    private String type;

    @NotNull
    private String city;

    @NotNull
    private String district;

    public String getType() {
        return type;
    }

    public CityAndDistrictDTO setType(String type) {
        this.type = type;
        return this;
    }

    public String getCity() {
        return city;
    }

    public CityAndDistrictDTO setCity(String city) {
        this.city = city;
        return this;
    }

    public String getDistrict() {
        return district;
    }

    public CityAndDistrictDTO setDistrict(String district) {
        this.district = district;
        return this;
    }


    @Override
    public String toString() {
        return "CityAndDistrictDTO{" +
            "type='" + type + '\'' +
            ", city='" + city + '\'' +
            ", district='" + district + '\'' +
            '}';
    }
}
